angular.module('myApp', ['ui.router','angularCSS','home','shop','cart','me'])
.config(['$urlRouterProvider',function($urlRouterProvider) {
	$urlRouterProvider.otherwise('/home');
}]).controller('IndexController', ['$scope', function($scope){
	// 底部按钮背景图切换
	$scope.click = function (a) {
		var footerDd = document.querySelectorAll("footer>dl>a>dt");
        for(var i = 0; i < footerDd.length; i++){
        	footerDd[i].setAttribute("class","");
        }
        footerDd[a].setAttribute("class","bjt"+a);
	}
}])
